package Gacha;

import java.awt.FlowLayout;
import java.awt.Image;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class videoplay extends JFrame /*implements Runnable*/ {
	ImageIcon ppt;
	JLabel jl;
	videoplay(int rolls, String name) {
		//ppt = new ImageIcon("src" + File.separator + "img" + File.separator + name + rolls + ".gif");
		ppt = new ImageIcon("img" + File.separator + name + rolls + ".gif");
		setIconImage(Gacha.icon);
		jl = new JLabel();
		Image image = ppt.getImage();
		image = image.getScaledInstance(1440, 768, Image.SCALE_DEFAULT);
		ppt.setImage(image);
		jl.setIcon(ppt);
		jl.setHorizontalAlignment(JLabel.CENTER);
		getContentPane().setLayout(new FlowLayout());
		getContentPane().add(jl);
		setExtendedState(JFrame.MAXIMIZED_BOTH);
		setAlwaysOnTop(true);
		setVisible(true);
		new Thread(new timekeeper(this)).start();
	}

}
